package kolekcje.powtorka.trzecia;

//public class Book implements Comparable<Book> {
	public class Book {

	private String title;
	
	public Book(String title){
		this.title=title;
	}

//	@Override
//	public int compareTo(Book b) {
//		return this.title.compareTo(b.getTitle());
//	}
	
	@Override
	public String toString(){
		return this.title;
	}

	public String getTitle() {
		return this.title;
	}
}
